package com.ruoyi.bizsys.mapper;

import com.ruoyi.bizsys.domain.CustomerInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.bizsys.domain.LoanDeferredOrder;
import com.ruoyi.bizsys.domain.ProductInfo;
import com.ruoyi.bizsys.vo.CustomerVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 客户信息Mapper接口
 *
 * @author african-loan
 * @date 2021-12-30
 */
public interface CustomerInfoMapper extends BaseMapper<CustomerInfo>{

    int upCreditRatingByCustNo(String creditRating, String customerNo);

   CustomerVO getCustomerInfo(String customerNo);

   @Select("select credit_rating from customer_info where cust_no=#{custNo}")
    String selectCreditRating(String custNo);

    List<ProductInfo> selectDeferred(@Param("custNo") String custNo,@Param("periodNum") String periodNum);
}
